package com.vincent.sciinfo.service.impl;

import com.vincent.sciinfo.mapper.SourceMapper;
import com.vincent.sciinfo.pojo.Source;
import com.vincent.sciinfo.service.SourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SourceServiceImpl implements SourceService {
    @Autowired
    private SourceMapper sourceMapper;

    @Override
    public int saveFilePath(String filePathSaved, String fileName) {
        return sourceMapper.saveFilePath(filePathSaved, fileName);
    }

    @Override
    public Source isExistsPaperFile(String paperName) {
        return sourceMapper.selectPaperFile(paperName);
    }
}
